package org.littlesun.management.address;

import java.util.List;

import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;

@ToString(exclude={})
@EqualsAndHashCode(exclude={})
@AllArgsConstructor
public class CityZone implements Area {

	@Getter private City city;
	@Getter private Zone zone;
	
	public CityZone(City city) {
		this(city, null);
	}
	
	public List<Road> getRoads() {
		if (zone != null) {
			return zone.getRoads();
		}
		else {
			return city.getRoads();
		}
	}

	public String getName() {
		String name = city.getName();
		if (zone != null) {
			name = name + zone.getName();
		}
		return name;
	}

	public List<String> getAliases() {
		if (zone != null) {
			for(String cityName : city.getAliases()) {
			}
		}
		else {
			for(String cityName : city.getAliases()) {
			}
		}
		return null;
	}
}
